import axios from '@/libs/request/axios'
// 复审提交
export const reviewSubmit = (params) => {
    return axios.request({
        url: `/case/loanApprove/reviewSubmit`,
        params: params,
        method: 'post'
    })
}

// 批量复审提交
export const reviewSubmits = (params) => {
    return axios.request({
        url: `/case/loanApprove/reviewSubmits`,
        params: params,
        method: 'post'
    })
}

//
export const backToAudit = (params) => {
    return axios.request({
        url: `/case/loanApprove/backToAudit`,
        params: params,
        method: 'post'
    })
}

//获取审批记录
export const getApproveRecord = (params) => {
    return axios.request({
        url: `/case/loanApprove/getApproveRecord`,
        params: params,
        method: 'post'
    })
}

//获取影像审核状态
export const getFileStatus =(params) => {
    return axios.request({
        url:`/case/loanApprove/getFileStatus`,
        params:params,
        method: 'post'
    })
}

//获取合作商超期信息
export const getSingledealer =(params) => {
    return axios.request({
        url:`/case/loanApprove/getSingledealer`,
        params:params,
        method: 'post'
    })
}

//获取审批时效
export const getPassLastDate =(params) => {
    return axios.request({
        url:`/case/loanApprove/getPassLastDate`,
        params:params,
        method: 'post'
    })
}

//获取首单抵押详情
export const getIsFirstMortgage =(params) => {
    return axios.request({
        url:`/case/loanApprove/getIsFirstMortgage`,
        data:params,
        method: 'post'
    })
}

//保存复核标记
export const saveReviewSign =(contractNo,status) => {
    return axios.request({
        url:`/case/loanApprove/saveReviewSign`,
        params:{contractNo,status},
        method: 'post'
    })
}

